package com.ruipeng.shengyapo.model;

import java.math.BigDecimal;

public class UserInfo {
    private Integer userId; // 用户ID

    private String userName; // 用户姓名

    private String userIcon; // 头像

    private String nickName; // 用户昵称

    private String userTel; // 用户手机号

    private Integer totalRidingKm; // 累计骑行（公里）

    private Integer totalVentC; // 累计排碳量（千克）

    private Integer totalHeatConsumption; // 累计消耗热量（大卡）

    private Integer userAccount; // 账户余额

    private BigDecimal deposit; // 押金

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserIcon() {
        return userIcon;
    }

    public void setUserIcon(String userIcon) {
        this.userIcon = userIcon == null ? null : userIcon.trim();
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName == null ? null : nickName.trim();
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel == null ? null : userTel.trim();
    }

    public BigDecimal getDeposit() {
        return deposit;
    }

    public void setDeposit(BigDecimal deposit) {
        this.deposit = deposit;
    }

    public Integer getTotalRidingKm() {
        return totalRidingKm;
    }

    public void setTotalRidingKm(Integer totalRidingKm) {
        if(totalRidingKm == null){
            this.totalRidingKm = 0;
        }else{
            this.totalRidingKm = totalRidingKm;
        }
    }

    public Integer getTotalVentC() {
        return totalVentC;
    }

    public void setTotalVentC(Integer totalVentC) {
        if(totalVentC==null){
            this.totalVentC = totalVentC;
        }else{
            this.totalVentC = totalVentC;
        }
    }

    public Integer getTotalHeatConsumption() {
        return totalHeatConsumption;
    }

    public void setTotalHeatConsumption(Integer totalHeatConsumption) {
        if(totalHeatConsumption==null){
            this.totalHeatConsumption = totalHeatConsumption;
        }else {
            this.totalHeatConsumption = totalHeatConsumption;
        }
    }

    public Integer getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(Integer userAccount) {
        this.userAccount = userAccount;
    }
}